/*
  ==============================================================================

  This is an automatically generated file created by the Jucer!

  Creation date:  14 Dec 2009 10:18:20 pm

  Be careful when adding custom code to these files, as only the code within
  the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  and re-saved.

  Jucer version: 1.12

  ------------------------------------------------------------------------------

  The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
  Copyright 2004-6 by Raw Material Software ltd.

  ==============================================================================
*/

#ifndef __JUCER_HEADER_MAINCOMPONENT_MAINCOMPONENT_5DD60F34__
#define __JUCER_HEADER_MAINCOMPONENT_MAINCOMPONENT_5DD60F34__

//[Headers]     -- You can add your own extra header files here --
#include "includes.h"
#include "misc.h"
//[/Headers]



//==============================================================================
/**
                                                                    //[Comments]
    An auto-generated component, created by the Jucer.

    Describe your class and how it works here!
                                                                    //[/Comments]
*/
class MainComponent  : public Component,
                       public ButtonListener,
                       public ComboBoxListener,
                       public SliderListener
{
public:
    //==============================================================================
    MainComponent ();
    ~MainComponent();

    //==============================================================================
    //[UserMethods]     -- You can add your own custom methods in this section.
    //[/UserMethods]

    void paint (Graphics& g);
    void resized();
    void buttonClicked (Button* buttonThatWasClicked);
    void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
    void sliderValueChanged (Slider* sliderThatWasMoved);


    //==============================================================================
    juce_UseDebuggingNewOperator

private:
    //[UserVariables]   -- You can add your own custom variables in this section.
	File *KMLfile;
	XmlDocument *XMLin;
	XmlElement *XMLout;
	int XMLoutcount;
Array<Component*> buttonsAfterLoad;
OwnedArray<colourAssigment> colourID;
	std::map <String, Colour> preDefinedColours;
    //[/UserVariables]

    //==============================================================================
    GroupComponent* groupLoadXML;
    TextButton* selectFile;
    TextButton* convert;
    TextEditor* output;
    TextEditor* status;
    TextButton* saveFile;
    GroupComponent* styleEditor;
    ComboBox* styleTagList;
    Label* label;
    TextButton* showResults;
    Slider* day;
    Label* labelDate;
    Slider* year;
    ComboBox* month;
    TextButton* downloadXML;
    Slider* hour;
    Slider* minute;
    Label* misc1;
    Label* misc2;
    ColourSelector* colourSelect;
    TextButton* applayColour;
    TextButton* assignPredefColours;

    //==============================================================================
    // (prevent copy constructor and operator= being generated..)
    MainComponent (const MainComponent&);
    const MainComponent& operator= (const MainComponent&);
};


#endif   // __JUCER_HEADER_MAINCOMPONENT_MAINCOMPONENT_5DD60F34__
